package com.eastjet.maintenance.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.eastjet.maintenance.domain.Purchasedetails;
import com.eastjet.maintenance.domain.Purchaseorder;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author 杨博文
 * @description 针对表【purchasedetails(采购明细)】的数据库操作Service
 * @createDate 2024-11-25 09:23:39
 */
public interface PurchasedetailsService extends IService<Purchasedetails> {

    /*
     * @Description: 新增采购明细
     */
    @Transactional(rollbackFor = Exception.class)
    Boolean InsertPurchasedetails(List<Purchasedetails> purchasedetails);

    /*
     * @Description: 更新采购明细
     */
    @Transactional(rollbackFor = Exception.class)
    Boolean UpdatePurchasedetails(List<Purchasedetails> purchasedetails);

    /*
     * @Description: 删除采购明细
     */
    Boolean DeletePurchasedetails(List<String> ids);

    /*
     * @Description: 根据采购单号查询采购明细
     */
    List<Purchasedetails> selectPurchasedetailsById(String code);

    /**
     * 根据采购单号查询采购明细
     *
     * @param code
     * @return
     */
    List<Purchasedetails> selectPurchasedetailsByCode(Purchasedetails purchaseorder);


}
